<form name="form1" method="post">
<table width="600" border="0">
  <tr>
    <td>Nombre:</td>
    <td>
		<input type="text" name="nombre" style="width:250px" value="<?=$objeto->nombre?>">
		<span class="errormsg" id="error_desc">*</span>
		<?=$validator->show("error_desc")?>
	</td>
  </tr>
  <tr>
    <td width="100">Costo:</td>
    <td>
		<input type="text" name="costo" id="costo" onClick="click_monto();" onBlur="monto_defecto();" value="<?=empty($objeto->costo) ? '0,00': $objeto->costo?>">
		<span class="errormsg" id="error_costo">*</span>
		<?=$validator->show("error_desc")?>
	</td>
  </tr>
  <tr>
	  <td width="100px">Es Excenta?:</td>
	  <td colspan="2">
		<SELECT NAME="excenta">
			<OPTION <?=($objeto->excenta=='') ? "selected" : "" ?> value='-1'>Seleccione...
			<OPTION <?=($objeto->excenta=='S') ? "selected" : "" ?> value='S'>Si
				<OPTION <?=($objeto->excenta=='N') ? "selected" : "" ?> value='N'>No
		</SELECT>
	  </td>
  </tr>
  <tr>
    <td >Conc. Asociado:</td>
    <td ><?=helpers::combo($conn, '', $objeto->id_concepto,'','','id_concepto','id','nombre','id_concepto','',"SELECT * FROM conceptos WHERE tipo = 'P' ORDER BY nombre",'','true')?></td>
  </tr>

</table>
<input style="float:right"  name="accion" type="button" value="<?=$boton?>" onclick="<?=$validator->validate() ?>" />
<input name="id" type="hidden" value="<?=$objeto->id?>" />
<input name="accion" type="hidden" value="<?=$boton?>" /> 
<span style="position:absolute;top:4px;right:5px;cursor:pointer;">
<img onclick="close_div();" src="images/close_div.gif" /></span>
</form>
<p class="errormsg">(*) Campo requerido</p
